
<?php
$id=$_POST['id'];
$name = $_POST['name']; //giá trị của form name="basic_name2"
//connect datbase

$conn = mysql_connect('localhost', 'root', 'vertrigo');
mysql_select_db('tdc');
mysql_query("update students set Name='".$name."' WHERE ID='".$id."'");
?>
<html>
    <head>
        <meta charset="UTF-8">
         <meta http-equiv="refresh" content="0.5; url=index.php"/>
    </head>
    <body>
    </body>
</html>

